export const businessTypeOptions = [
  { label: "全部", value: "" },
  { label: "大型级以上餐饮", value: "1" },
  { label: "中型餐饮", value: "2" },
  { label: "小微型餐饮", value: "3" },
  { label: "学校食堂", value: "4" },
  { label: "托幼机构食堂", value: "5" },
  { label: "养老机构食堂", value: "6" },
  { label: "医疗机构食堂", value: "7" },
  { label: "其他", value: "8" },
];

/**
 * 查找对应的lable
 * @param {*} value
 * @returns
 */
 export const findBusinessTypeOptionLable = (value) => {
  // 根据value找到对应的item
  const data = businessTypeOptions.find((item) => item.value === value);

  // 注意data可能是undefined
  return data?.label;
};

/**
 * 分页数据
 * @returns
 */
 export const getPageInfo = () => {
  return {
    page: 1,
    size: 5,
    order: "createTime",
    sort: "desc",
  };
};
